package com.example.child_protection.intercetor;

import org.springframework.stereotype.Component;
import org.springframework.web.servlet.handler.HandlerInterceptorAdapter;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author Biz
 * @date 2018-10-31
 * 登录验证拦截器
 */
@Component
public class LoginIntercetor extends HandlerInterceptorAdapter {

    @Override
    public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) throws Exception {

        System.out.println("自定义拦截器.....");
        return true;
    }

}
